import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'

@Entity()
export class User {
    @PrimaryGeneratedColumn('uuid')
    id: string

    @Column({ comment: '用户名' })
    user_name: string

    @Column({ comment: '密码' })
    password: string

    @Column()
    passwd_salt: string

    @Column({ comment: '手机号' })
    mobile: string

    @Column({ comment: '用户状态' })
    user_status: number

    @Column({ type: 'bigint', comment: '创建时间' })
    create_by: number

    @Column({ default: 0, comment: '角色' })
    role: number
}
